﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200124B RID: 4683
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StopRogueAdventureRoomScRsp : IMessage<StopRogueAdventureRoomScRsp>, IMessage, IEquatable<StopRogueAdventureRoomScRsp>, IDeepCloneable<StopRogueAdventureRoomScRsp>, IBufferMessage
	{
		// Token: 0x17003B62 RID: 15202
		// (get) Token: 0x0600D207 RID: 53767 RVA: 0x00235EBF File Offset: 0x002340BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StopRogueAdventureRoomScRsp> Parser
		{
			get
			{
				return StopRogueAdventureRoomScRsp._parser;
			}
		}

		// Token: 0x17003B63 RID: 15203
		// (get) Token: 0x0600D208 RID: 53768 RVA: 0x00235EC6 File Offset: 0x002340C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StopRogueAdventureRoomScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003B64 RID: 15204
		// (get) Token: 0x0600D209 RID: 53769 RVA: 0x00235ED8 File Offset: 0x002340D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StopRogueAdventureRoomScRsp.Descriptor;
			}
		}

		// Token: 0x0600D20A RID: 53770 RVA: 0x00235EDF File Offset: 0x002340DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StopRogueAdventureRoomScRsp()
		{
		}

		// Token: 0x0600D20B RID: 53771 RVA: 0x00235EE8 File Offset: 0x002340E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StopRogueAdventureRoomScRsp(StopRogueAdventureRoomScRsp other) : this()
		{
			this.adventureRoomInfo_ = ((other.adventureRoomInfo_ != null) ? other.adventureRoomInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D20C RID: 53772 RVA: 0x00235F34 File Offset: 0x00234134
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StopRogueAdventureRoomScRsp Clone()
		{
			return new StopRogueAdventureRoomScRsp(this);
		}

		// Token: 0x17003B65 RID: 15205
		// (get) Token: 0x0600D20D RID: 53773 RVA: 0x00235F3C File Offset: 0x0023413C
		// (set) Token: 0x0600D20E RID: 53774 RVA: 0x00235F44 File Offset: 0x00234144
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AdventureRoomInfo AdventureRoomInfo
		{
			get
			{
				return this.adventureRoomInfo_;
			}
			set
			{
				this.adventureRoomInfo_ = value;
			}
		}

		// Token: 0x17003B66 RID: 15206
		// (get) Token: 0x0600D20F RID: 53775 RVA: 0x00235F4D File Offset: 0x0023414D
		// (set) Token: 0x0600D210 RID: 53776 RVA: 0x00235F55 File Offset: 0x00234155
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600D211 RID: 53777 RVA: 0x00235F5E File Offset: 0x0023415E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StopRogueAdventureRoomScRsp);
		}

		// Token: 0x0600D212 RID: 53778 RVA: 0x00235F6C File Offset: 0x0023416C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StopRogueAdventureRoomScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.AdventureRoomInfo, other.AdventureRoomInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D213 RID: 53779 RVA: 0x00235FBC File Offset: 0x002341BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.adventureRoomInfo_ != null)
			{
				num ^= this.AdventureRoomInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D214 RID: 53780 RVA: 0x00236011 File Offset: 0x00234211
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D215 RID: 53781 RVA: 0x00236019 File Offset: 0x00234219
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D216 RID: 53782 RVA: 0x00236024 File Offset: 0x00234224
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.adventureRoomInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.AdventureRoomInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D217 RID: 53783 RVA: 0x00236080 File Offset: 0x00234280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.adventureRoomInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.AdventureRoomInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D218 RID: 53784 RVA: 0x002360D8 File Offset: 0x002342D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StopRogueAdventureRoomScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.adventureRoomInfo_ != null)
			{
				if (this.adventureRoomInfo_ == null)
				{
					this.AdventureRoomInfo = new AdventureRoomInfo();
				}
				this.AdventureRoomInfo.MergeFrom(other.AdventureRoomInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D219 RID: 53785 RVA: 0x00236140 File Offset: 0x00234340
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D21A RID: 53786 RVA: 0x0023614C File Offset: 0x0023434C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 16U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.adventureRoomInfo_ == null)
					{
						this.AdventureRoomInfo = new AdventureRoomInfo();
					}
					input.ReadMessage(this.AdventureRoomInfo);
				}
			}
		}

		// Token: 0x0400542F RID: 21551
		private static readonly MessageParser<StopRogueAdventureRoomScRsp> _parser = new MessageParser<StopRogueAdventureRoomScRsp>(() => new StopRogueAdventureRoomScRsp());

		// Token: 0x04005430 RID: 21552
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005431 RID: 21553
		public const int AdventureRoomInfoFieldNumber = 1;

		// Token: 0x04005432 RID: 21554
		private AdventureRoomInfo adventureRoomInfo_;

		// Token: 0x04005433 RID: 21555
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04005434 RID: 21556
		private uint retcode_;
	}
}
